<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>积分信息列表</title> 
<%@ include file="/page/include.jsp"%>
<link href="<%=basePath%>/statics/css/webform.css?v=20180104" rel="stylesheet" />
</head>
<body class="nav-md">
    <div class="container body">
        <div class="main_container">
            <div class="framebody" role="main">
                <!-- <blockquote class="ui-elem-quote">积分信息</blockquote> -->
                <div class="row">
                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel">
                            <div class="x_title">
                                <h2>
                                    <i class="fa fa-pencil fa-fw"></i>查询条件 <small></small>
                                </h2>
                                <div class="clearfix"></div>
                            </div>
                            <div class="x_content">
                                <form id="position-form" class="form-horizontal form-label-left">
                                    <div class="form-group">
                                        <label class="control-label col-md-1" for="mobile">客户号码： </label>
                                        <div class="col-md-3">
                                            <input type="text" id="mobile" name="mobile" class="form-control col-md-12">
                                        </div>
                                        <label class="control-label col-md-1" for="customerName">客户名称： </label>
                                        <div class="col-md-3">
                                            <input type="text" id="customerName" name="customerName" class="form-control col-md-12">
                                        </div>
                                        <label class="control-label col-md-1" for="companyName">客户单位： </label>
                                        <div class="col-md-3">
                                            <input type="text" id="companyName" name="companyName" class="form-control col-md-12">
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="control-label col-md-1" for="beginPoint">积分范围从： </label>
                                        <div class="col-md-3">
                                            <input type="text" id="beginPoint" name="beginPoint" class="form-control col-md-12">
                                        </div>
                                        <label class="control-label col-md-1 txtCenter" for="endPoint">至：</label>
                                        <div class="col-md-3">
                                            <input type="text" id="endPoint" name="endPoint" class="form-control col-md-12">
                                        </div>
                                        <div class="pull-right">
                                            <a class="btn btn-danger" id="btnClear"><i class="fa fa-trash-o fa-fw"></i>清空</a> <a
                                                class="btn btn-primary search" id="btnQuery"><i class="fa fa-search-plus fa-fw"></i>查询</a>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="row">
                    <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="x_panel">
                            <div class="x_title">
                                <h2>
                                    <i class="fa fa-reorder fa-fw"></i>积分信息 <small></small>
                                </h2>
                                <div class="clearfix">
                                    <div class="pull-left"></div>
                                </div>
                            </div>
                            <div class="x_content">
                                <div class="row">
                                    <table id="pointTable" class="table"></table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    
    
<%-- 积分操作弹出框 begin --%>
<div class="modal fade" id="pointModal" tabindex="-1" data-backdrop="static" role="dialog" aria-labelledby="pointModalLabel" aria-hidden="true">
    <form action="#" class="form-horizontal form-label-left">
        <div class="modal-dialog" style="width: 50%;min-height:450px;height:500px;max-height:500px;">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="pointModalLabel">积分编辑</h4>
                </div>
                <div class="modal-body">
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-3"><b>姓名：</b></label>
                        <div class="col-md-3 col-sm-3 col-xs-3 padTop8" id="labelCustomerName">&nbsp;</div>
                        <label class="control-label col-md-3 col-sm-3 col-xs-3"><b>手机号码：</b></label>
                        <div class="col-md-3 col-sm-3 col-xs-3 padTop8" id="labelMobile">&nbsp;</div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-3"><b>剩余积分：</b></label>
                        <div class="col-md-3 col-sm-3 col-xs-3 padTop8" id="labelPoint">&nbsp;</div>
                        <label class="control-label col-md-3 col-sm-3 col-xs-3"><font color="red">*</font><b>操作类型：</b></label>
                        <div class="col-md-3 col-sm-3 col-xs-3 padTop8" style="margin-left: -10px;">
                            <select class="selectpicker col-md-12" id="pointUserOptType">
                                <option value="">请选择</option>
                            </select>
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-3"><font color="red">*</font><b>操作积分：</b></label>
                        <div class="col-md-3 col-sm-3 col-xs-3">
                            <input type="text" class="form-control" id="operatePoint"
                                        validate="{required:true,isNoInteger:true}">
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-3"><font color="red">*</font><b>原因：</b></label>
                        <div class="col-md-9 col-sm-9 col-xs-9">
                            <textarea id="adjustReason" name="adjustReason" maxlength="250" class="form-control col-md-10 col-xs-12"></textarea>
                        </div>
                    </div>
                    
                </div>
                <div class="modal-footer">
                    <input type="hidden" id="id" />
                    <input type="hidden" id="customerId" />
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="button" class="btn btn-primary" onclick="javascript: doSavePoint();">确定</button>
                </div>
            </div>
        </div>
    </form>
</div>
<%-- 积分操作弹出框 begin --%>

<script src="${rootPath}/js/point/point_list.js"></script>
</body>
</html>